'use strict';
const dbAddress = uniCloud.database().collection('address')
exports.main = async (event, context) => {
	//event为客户端上传的参数
	const { nickname, tel, address, _id } = event
	const resp = await dbAddress.doc(_id).update({
    nickname, tel, address
  })
	//返回数据给客户端
	return resp
};
